import { createRouter, createWebHistory, Router } from 'vue-router';
import routes from './routes';

const router: Router = createRouter({
  // hash: ,
  // todo
  // history: createWebHistory('/sportWx/'),
  history: createWebHistory(''),
  routes: routes,
});

router.beforeEach(async (_to, _from, next) => {
  next();
});

export default router;
